"""
通用id
"""
RESOURCE_ID = '//*[@resource-id="com.xiaoma.personal:id/{}"]'

# 桌面id
RESOURCE_ID_LAUNCHER = '//*[@resource-id="com.xiaoma.launcher:id/{}"]'

"""
首页
"""
# 首页列表分类的封面
index_list_category_cover_img = '//*[@text="{}"]/parent::*/android.widget.ImageView'

# 无内容图标
no_connect_icon = '//*[@resource-id="com.xiaoma.personal:id/base_state_view"]/android.view.ViewGroup[{}]/android.widget.ImageView'

# 无内容文案
no_connect_text = '//*[@resource-id="com.xiaoma.personal:id/base_state_view"]/android.view.ViewGroup[{}]/android.widget.TextView'

# 姓名标题
name_title_text = '//*[@resource-id="com.xiaoma.personal:id/personal_name_relative"]/android.widget.TextView[{}]'

# 姓名标题
name_text = '//*[@resource-id="com.xiaoma.personal:id/personal_name_relative"]/android.widget.TextView[{}]'

# 性别标题
sex_title_text = '//*[@resource-id="com.xiaoma.personal:id/personal_sex_relative"]/android.widget.TextView[{}]'

# 性别标题
sex_text = '//*[@resource-id="com.xiaoma.personal:id/personal_sex_relative"]/android.widget.TextView[{}]'

# 性别标题
age_title_text = '//*[@resource-id="com.xiaoma.personal:id/personal_age_relative"]/android.widget.TextView[{}]'

# 性别标题
age_text = '//*[@resource-id="com.xiaoma.personal:id/personal_age_relative"]/android.widget.TextView[{}]'


"""
我的积分页
"""
# 积分页列表任务标题
coin_list_task_title_text = '//*[@resource-id="com.xiaoma.personal:id/car_coin_record_recycler_view"]/android.widget.RelativeLayout[{}]/android.widget.TextView[1]'

# 积分页列表完成时间
coin_list_task_time_text = '//*[@resource-id="com.xiaoma.personal:id/car_coin_record_recycler_view"]/android.widget.RelativeLayout[{}]/android.widget.TextView[2]'

# 积分页列表车币变化数量
coin_list_task_count_text = '//*[@resource-id="com.xiaoma.personal:id/car_coin_record_recycler_view"]/android.widget.RelativeLayout[{}]/android.widget.TextView[3]'

# 积分页列表车币icon
coin_list_task_coin_icon = '//*[@resource-id="com.xiaoma.personal:id/car_coin_record_recycler_view"]/android.widget.RelativeLayout[{}]/android.widget.ImageView'

# 打卡天数列表次数
punch_list_day_text = '//*[@resource-id="com.xiaoma.personal:id/signin_view"]/android.view.ViewGroup[{}]/android.widget.TextView'

# 打卡天数列表图标
punch_list_day_img = '//*[@resource-id="com.xiaoma.personal:id/signin_view"]/android.view.ViewGroup[{}]/android.widget.ImageView'

# 日常任务标题
punch_list_day_title_text = '//*[@resource-id="com.xiaoma.personal:id/recycler_view"]/android.view.ViewGroup[{}]/android.widget.TextView'

# 日常任务进度条
punch_list_day_progress_bar_img = '//*[@resource-id="com.xiaoma.personal:id/recycler_view"]/android.view.ViewGroup[{}]/android.view.View'

# 日常任务完成按钮
punch_list_day_done_btn = '//*[@resource-id="com.xiaoma.personal:id/recycler_view"]/android.view.ViewGroup[{}]/android.widget.Button'

# 新手引导页面图标
new_guide_list_category_cover_img = '//*[@text="{}"]/parent::*/android.widget.ImageView'
# 解释说明：parent::*是选取后面节点之前的所有父节点，选取直到第一个父节点（注意最后面传递的值ImageView）
# new_guide_list_categorry_cover_img = '//*[@resource-id="com.xiaoma.personal:id/rv_apps"]/android.view.ViewGroup[{}]/android.widget.ImageView'

# 新手引导页面标题
new_guide_list_category_name_text = '//*[@text="{}"]/parent::*/android.widget.TextView'
# 这里不能使用resource定位的原因是由于传递的数据必须传递数字进行传递，否者将无法获取文本传递
# new_guide_list_category_name_text = '//*[@resource-id="com.xiaoma.personal:id/rv_apps"]/android.view.ViewGroup[{}]/android.widget.TextView'

# 车牌号页面-车牌省份
car_info_list_city_name_text = '//*[@resource-id="com.xiaoma.personal:id/province"]/android.widget.LinearLayout/android.widget.TextView[{}]'

# 车牌号页面-车牌首字母
car_info_list_car_number_text = '//android.view.ViewGroup/android.widget.FrameLayout/*[@resource-id="com.xiaoma.personal:id/city"]/android.widget.LinearLayout/android.widget.TextView[{}]'

# 我的反馈消息图标列表
my_new_list_feed_icon = '//*[@resource-id="com.xiaoma.personal:id/rv_mine_message"]/android.view.ViewGroup/android.widget.RelativeLayout[{}]/android.widget.ImageView'

# 我的反馈消息标题列表
my_new_list_feed_title_text = '//*[@resource-id="com.xiaoma.personal:id/rv_mine_message"]/android.view.ViewGroup/android.widget.RelativeLayout[{}]/*[@resource-id="com.xiaoma.personal:id/tv_solve_question"]'

# 我的反馈消息具体消息回复列表
my_new_list_feed_reply_text = '//*[@resource-id="com.xiaoma.personal:id/rv_mine_message"]/android.view.ViewGroup/android.widget.RelativeLayout[{}]/*[@resource-id="com.xiaoma.personal:id/tv_message_content"]'

# 我的消息选中框
my_new_list_feed_select = '//*[@resource-id="com.xiaoma.personal:id/rv_mine_message"]/android.view.ViewGroup[{}]'

# 我的订单列表tab文案
my_order_list_tab_title_text = '//*[@resource-id="com.xiaoma.personal:id/tab_mine_order"]/android.widget.LinearLayout/android.support.v7.app.ActionBar$Tab[{}]/android.view.ViewGroup/android.widget.TextView'

# 我的订单列表tab图标
my_order_list_tab_title_icon = '//*[@resource-id="com.xiaoma.personal:id/tab_mine_order"]/android.widget.LinearLayout/android.support.v7.app.ActionBar$Tab[{}]/android.view.ViewGroup/android.view.View'

# 我的订单封面img
my_order_list_order_img = '//*[@resource-id="com.xiaoma.personal:id/slide_view"]/android.view.ViewGroup[{}]/*[@resource-id="com.xiaoma.personal:id/content_constraint_layout"]/android.widget.ImageView'

# 我的订单酒店名称
my_order_list_order_hotel_name_text = '//*[@resource-id="com.xiaoma.personal:id/slide_view"]/android.view.ViewGroup[{}]/*[@resource-id="com.xiaoma.personal:id/content_constraint_layout"]/*[@resource-id="com.xiaoma.personal:id/tv_order_content_title"]'

# 我的订单支付状态
my_order_list_order_payment_status_text = '//*[@resource-id="com.xiaoma.personal:id/slide_view"]/android.view.ViewGroup[{}]/*[@resource-id="com.xiaoma.personal:id/content_constraint_layout"]/*[@resource-id="com.xiaoma.personal:id/tv_pay_status"]'

# 我的订单床型
my_order_list_order_bed_type_text = '//*[@resource-id="com.xiaoma.personal:id/slide_view"]/android.view.ViewGroup[{}]/*[@resource-id="com.xiaoma.personal:id/content_constraint_layout"]/*[@resource-id="com.xiaoma.personal:id/tv_order_content_category"]'

# 我的订单支付金额
my_order_list_order_payment_amount_text = '//*[@resource-id="com.xiaoma.personal:id/slide_view"]/android.view.ViewGroup[{}]/*[@resource-id="com.xiaoma.personal:id/content_constraint_layout"]/*[@resource-id="com.xiaoma.personal:id/tv_pay_amount"]'

# 我的订单入住时间
my_order_list_order_check_time_text = '//*[@resource-id="com.xiaoma.personal:id/slide_view"]/android.view.ViewGroup[{}]/*[@resource-id="com.xiaoma.personal:id/content_constraint_layout"]/*[@resource-id="com.xiaoma.personal:id/tv_order_content_desc"]'

# 我的订单创建时间
my_order_list_order_create_time_text = '//*[@resource-id="com.xiaoma.personal:id/slide_view"]/android.view.ViewGroup[{}]/*[@resource-id="com.xiaoma.personal:id/content_constraint_layout"]/*[@resource-id="com.xiaoma.personal:id/tv_create_time"]'

# 我的订单剩余支付时间
my_order_list_remaining_payment_time_text = '//*[@resource-id="com.xiaoma.personal:id/slide_view"]/android.view.ViewGroup[{}]/*[@resource-id="com.xiaoma.personal:id/content_constraint_layout"]/*[@resource-id="com.xiaoma.personal:id/tv_order_time"]'

# 立即支付按钮
my_order_list_order_select_btn = '//*[@resource-id="com.xiaoma.personal:id/item_order_content_layout"]/android.view.ViewGroup[{}]/android.view.ViewGroup/*[@resource-id="com.xiaoma.personal:id/bt_pay_order"]'

# 电话按钮
my_order_list_order_iPhone_btn = '//*[@resource-id="com.xiaoma.personal:id/item_order_content_layout"]/android.view.ViewGroup[{}]/android.view.ViewGroup/*[@resource-id="com.xiaoma.personal:id/bt_call_phone"]'

# 导航按钮
my_order_list_order_navigation_btn = '//*[@resource-id="com.xiaoma.personal:id/item_order_content_layout"]/android.view.ViewGroup[{}]/android.view.ViewGroup/*[@resource-id="com.xiaoma.personal:id/bt_call_phone"]'

# 密码输入框文本
password_list_input_text = '//*[@resource-id="com.xiaoma.personal:id/password_input_area"]/android.widget.LinearLayout/android.widget.RelativeLayout[{}]/android.widget.TextView'

# 密码输入框图标
password_list_input_icon = '//*[@resource-id="com.xiaoma.personal:id/password_input_area"]/android.widget.LinearLayout/android.widget.RelativeLayout[{}]/android.widget.ImageView'

# 数字按键
password_list_number_btn = '//*[@resource-id="com.xiaoma.personal:id/number_key_board"]/android.view.ViewGroup/android.widget.Button[{}]'

# 账户切换界面用户头像
account_user_avatar_img = '//*[@resource-id="com.xiaoma.personal:id/rv_account"]/android.widget.RelativeLayout[{}]/*[@resource-id="com.xiaoma.personal:id/iv_pic"]'

# 账户切换界面用户性别
account_user_gender_icon = '//*[@resource-id="com.xiaoma.personal:id/rv_account"]/android.widget.RelativeLayout[{}]/*[@resource-id="com.xiaoma.personal:id/gender"]'

# 账户切换界面用户选中图标
account_user_select_img = '//*[@resource-id="com.xiaoma.personal:id/rv_account"]/android.widget.RelativeLayout[{}]'

# 账户切换界面用户名称
account_user_name_text = '//*[@resource-id="com.xiaoma.personal:id/rv_account"]/android.widget.RelativeLayout[{}]/*[@resource-id="com.xiaoma.personal:id/user_name"]'

# 注销提示语
logout_tip_text = '//*[@resource-id="com.xiaoma.personal:id/content_container"]/android.view.ViewGroup/android.widget.TextView[{}]'

# 弹窗标题
personal_coin_tip_text = '//*[@resource-id="android:id/content"]/android.view.ViewGroup/android.widget.TextView[{}]'

# 不再提醒
personal_coin_no_prompt_btn = '//*[@resource-id="android:id/content"]/android.view.ViewGroup[{}]/*[@resource-id="com.xiaoma.personal:id/cb_never_remind"]'

# 无感支付标题
Feeless_payment_text = '//*[@resource-id="com.xiaoma.personal:id/fl_authorize_status"]/android.widget.LinearLayout[{}]/android.widget.TextView'

# 无感支付按钮
Feeless_payment_btn = '//*[@resource-id="com.xiaoma.personal:id/fl_authorize_status"]/android.widget.LinearLayout[{}]/*[@resource-id="com.xiaoma.personal:id/btn_open"]'

# 性别选中
sex_select_text = '//*[@resource-id="com.xiaoma.personal:id/wv_sex_setting"]/android.widget.LinearLayout/android.widget.TextView[{}]'

# 识别记录按钮
identify_record_button = '//*[@resource-id="com.xiaoma.launcher:id/tv_music_rec_history"]/android.widget.TextView[{}]'